home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Simple Help / ScrollDialog.h next >
Text File  |  1994-07-13  |  2KB  |  56 lines

  1. /***************************************************************************************
  2. *
  3. *        ScrollDialog.c- A useful library for implementing scrollable text boxes in
  4. *                            a dialog. Can be used for elaborate about boxes, etc.
  5. *
  6. *        ©1993 by Graham Cox. All Rights Reserved.
  7. *
  8. *        20/3/93    Modified to allow edit operations if required.
  9. *        31/8/93    changed to pascal calling conventions for greater utility
  10. *        13/7/94 converted to MetroWerks CodeWarrior project and compiled for PowerPC
  11. *
  12. ***************************************************************************************/
  13.  
  14.  
  15. typedef struct
  16. {
  17.     ControlHandle    TDControl;
  18.     TEHandle        TDText;
  19.     long            reserved;
  20.     short            lineHeight;
  21.     short            pageHeight;
  22.     Boolean            editable;
  23. }
  24. TDRecord, *TDRecPtr, **TDRecHdl;
  25.  
  26. #define        NIL     nil
  27.  
  28. pascal     void         TDUserItem(DialogPtr theDialog,short theItem);
  29.  
  30. pascal     void         TDScrollProc(ControlHandle theControl,short partCode);
  31.  
  32. pascal     Boolean     TDFilter(DialogPtr theDialog,EventRecord *theEvent,short *itemHit);
  33.  
  34. pascal     Boolean     ModelessText(DialogPtr theDialog,short theItem,EventRecord *theEvent);
  35.  
  36. pascal    DialogPtr    GetTextDialog(short dialogID,short textUserItem,short textResourceID,Boolean canWrite);
  37.  
  38. pascal    void        ModalTDDialog(short *theItem);
  39.  
  40. pascal    void        DisposeTDDialog(DialogPtr theDialog);
  41.  
  42. pascal    short        ScrollTextDialog(short dialogID,short textUserItem,short textResourceID);
  43.  
  44. pascal    void        TDSetText(DialogPtr theDialog,Ptr text,long tLength,StScrpHandle stInfo);
  45.  
  46. pascal    void        TDSetResourceText(DialogPtr theDialog,short textResID);
  47.  
  48. pascal    TEHandle    GetTDTextHdl(DialogPtr theDialog);
  49.  
  50. pascal    void        RecalTDBar(DialogPtr theDialog);
  51.  
  52. pascal    void        UpdateTDBar(TEHandle theText,ControlHandle theBar);
  53.  
  54. pascal    void        RecalTDBar(DialogPtr theDialog);
  55.  
  56.